import {ElMessage, ElMessageBox} from "element-plus";

export function removeConfirm(resolve) {
    return ElMessageBox.confirm("此操作将永久删除该记录, 是否继续？", "提示", {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
    }).then(() => {
        resolve();
    }).catch(() => {
        ElMessage.info("取消删除")
    });
}